Integrand size = 40, antiderivative size = 43 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c-c \sin (e+f x))} \, dx=\frac {2 \sec (e+f x) \sqrt {g \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}{c f g} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.075, Rules used = {3009, 12, 30} \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c-c \sin (e+f x))} \, dx=\frac {2 \sec (e+f x) \sqrt {a \sin (e+f x)+a} \sqrt {g \sin (e+f x)}}{c f g} \]
[In]
[Out]
Rule 12
Rule 30
Rule 3009
Rubi steps \begin{align*} \text {integral}& = -\frac {(2 a) \text {Subst}\left (\int \frac {1}{c g x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {g \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\right )}{f} \\ & = -\frac {(2 a) \text {Subst}\left (\int \frac {1}{x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {g \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\right )}{c f g} \\ & = \frac {2 \sec (e+f x) \sqrt {g \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}{c f g} \\ \end{align*}
Time = 0.55 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.93 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c-c \sin (e+f x))} \, dx=\frac {2 \sqrt {a (1+\sin (e+f x))} \tan (e+f x)}{c f \sqrt {g \sin (e+f x)}} \]
[In]
[Out]
Time = 2.86 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.86
method | result | size |
default | \(\frac {2 \tan \left (f x +e \right ) \sqrt {a \left (1+\sin \left (f x +e \right )\right )}}{c f \sqrt {g \sin \left (f x +e \right )}}\) | \(37\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 41, normalized size of antiderivative = 0.95 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c-c \sin (e+f x))} \, dx=\frac {2 \, \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {g \sin \left (f x + e\right )}}{c f g \cos \left (f x + e\right )} \]
[In]
[Out]
\[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c-c \sin (e+f x))} \, dx=- \frac {\int \frac {\sqrt {a \sin {\left (e + f x \right )} + a}}{\sqrt {g \sin {\left (e + f x \right )}} \sin {\left (e + f x \right )} - \sqrt {g \sin {\left (e + f x \right )}}}\, dx}{c} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 309 vs. \(2 (39) = 78\).
Time = 0.31 (sec) , antiderivative size = 309, normalized size of antiderivative = 7.19 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c-c \sin (e+f x))} \, dx=-\frac {\frac {4 \, {\left ({\left (\frac {3 \, \sqrt {2} \sqrt {a} \sqrt {g} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {\sqrt {2} \sqrt {a} \sqrt {g} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )} \sqrt {\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}} - \frac {2 \, {\left (\frac {3 \, \sqrt {2} \sqrt {a} \sqrt {g} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {\sqrt {2} \sqrt {a} \sqrt {g} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )}}{\sqrt {\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}}\right )}}{c g - \frac {c g \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}} - \frac {2 \, \sqrt {2} \sqrt {a} \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )^{\frac {3}{2}} + \frac {3 \, \sqrt {2} \sqrt {a} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}{c \sqrt {g}} - \frac {2 \, \sqrt {2} \sqrt {a} \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )^{\frac {3}{2}} - \frac {3 \, \sqrt {2} \sqrt {a} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}{c \sqrt {g}}}{12 \, f} \]
[In]
[Out]
\[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c-c \sin (e+f x))} \, dx=\int { -\frac {\sqrt {a \sin \left (f x + e\right ) + a}}{{\left (c \sin \left (f x + e\right ) - c\right )} \sqrt {g \sin \left (f x + e\right )}} \,d x } \]
[In]
[Out]
Time = 13.13 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.21 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {g \sin (e+f x)} (c-c \sin (e+f x))} \, dx=\frac {2\,\sin \left (2\,e+2\,f\,x\right )\,\sqrt {a\,\left (\sin \left (e+f\,x\right )+1\right )}}{c\,f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )\,\sqrt {g\,\sin \left (e+f\,x\right )}} \]
[In]
[Out]